﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    enum menu
    {
        西红柿炒鸡蛋,
        开水白菜,
        红烧肉,
        鲍汁肉片饭,
        荔枝肉
    }
    class CookRobot : Robot
    {
        private menu type;

        public override void Working()
        {
            Console.WriteLine("我是{0},我叫：{1}，我会炒：{2}", RobotType.炒菜机器人, this.Name, this.type);
        }

        public menu Type
        {
            get { return this.type; }
            set { this.type = value; }
        }
        public CookRobot() { }
        public CookRobot(string name, menu type) : base(name)
        {
            this.type = type;
        }

    }
}
